<%--
  Created by IntelliJ IDEA.
  User: Winstars
  Date: 2007-4-8
  Time: 13:42:05
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Simple jsp page</title>
    <script type="text/javascript" src="scripts/dojo.js"></script>

    <script type="text/javascript">
        dojo.require("dojo.event.*");
        dojo.require("dojo.widget.*");
        dojo.require("dojo.widget.Button");

        function pressButton() {
            alert("you have pressed the button");
        }

        function init() {
            var helloButton = dojo.widget.byId("helloButton");
            dojo.event.connect(helloButton, "onclick", "pressButton");
        }

        dojo.addOnLoad(init);
    </script>
</head>
<body>
<p>Place your content here</p>
<button dojoType="Button" widgetId="helloButton">Hello World!</button>
</body>
</html>